package com.chenye.generator;

/**
 * @Auther:chenye
 * @Data:2018/7/9
 * @Description:泛型边界测试
 */
public class Boundary{
    public <T extends Number> T get(Generator<T> t){
        return t.get();
    }

    public static void main(String[] args){
        NumGenerator<Integer> numGenerator = new NumGenerator<>(123);
        Boundary boundary = new Boundary();
        System.err.println(boundary.get(numGenerator));
    }
}
